import javax.swing.JPanel;
import java.awt.Color;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.BorderLayout;
import javax.swing.SwingConstants;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import java.awt.SystemColor;
import javax.swing.border.EtchedBorder;

public class letter extends JPanel{
	JLabel letter;
	public letter(char let){
		setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		setLayout(new GridBagLayout());
		
		letter = new JLabel(Character.toString(let));
		letter.setFont(new Font("Tahoma", Font.PLAIN, 50));
		add(letter);
		
		setHighlight(false);
	}
	public void setHighlight(boolean highlightState){
		setBackground(highlightState ? new Color(173, 216, 230) : new Color(245, 245, 245));
	}
}
